package Array.domainC;

import Array.domain.student;

import java.util.Scanner;

public class studentc {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入");
        String s=sc.nextLine();
        String[] s1=s.split(",");
        System.out.println(s1[0]);
        System.out.println(s1[1]);

        student stu=new student(s1[0],s1[1]);
        System.out.println(stu.setname()+"------"+stu.setage());
    }
}
